package NowCoderHuaWei;

import java.util.*;

public class Test03_2 {

	public static void main(String[] args) {
		
		Random ran=new Random();
		Scanner in=new Scanner(System.in); 
		while(in.hasNext())
		{
			TreeSet<Integer> ts=new TreeSet<Integer>();
			int n=in.nextInt();
			for(int i=0;i<n;i++)
			{
				int random=ran.nextInt(1000)+1;
				ts.add(random);
			}
			for(int a:ts)
			{
				System.out.println(a);
			}
		}
		in.close();
	}

}
